package com.learning_paicoding.entity;

/**
 * @Author hph
 * @Date 2025/10/15 22:19
 **/
public class UserThreadLocal {
    private UserThreadLocal() {

    }
    private static final ThreadLocal<User> LOCAL = new ThreadLocal<>();
    public static void put(User user) {
        LOCAL.set(user);
    }
    public static User get() {
        return LOCAL.get();
    }
    public static void remove() {
        LOCAL.remove();
    }

}
